package com.woniuxy.merchant.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.dto.NoticeListDto;
import com.woniu.form.PublishNoticeForm;
import com.woniu.form.QueryNoticeForm;
import com.woniu.form.UpdateNoticeForm;
import com.woniuxy.merchant.entity.Notis;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.validation.Valid;

/**
 * <p>
 * 公告表 服务类
 * </p>
 *
 * @author author
 * @since 2025-05-13
 */
public interface INotisService extends IService<Notis> {

    void publishNotice(@Valid PublishNoticeForm publishNoticeForm, Integer adminId);

    Page<NoticeListDto> noticeList(QueryNoticeForm queryNoticeForm);

    boolean deleteNotice(Integer noticeId);

    boolean updateNotice(UpdateNoticeForm updateNoticeForm);
}
